﻿@model IEnumerable<WebApplication.Models.Ann>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>


<table class="table">
    <tr>
        <th>
            @Html.DisplayName("Name")
        </th>
        <th>
            @Html.DisplayName("DataSet")
        </th>
        <th>
            @Html.DisplayName("Work")
        </th>
        <th>
            @Html.DisplayName("Time")
        </th>
        <th>
            @Html.DisplayName("Test")
        </th>
      
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayName(item.name)
        </td>
        <td>
           @Html.ActionLink(item.DataSet.name, "Edit/" + item.idDataSet, "DataSet")
        </td>
        <td>
            @Html.ActionLink(item.Work.name, "Edit/" + item.idWork, "Work")
        </td>
        <td>
            @Html.DisplayName(item.idDataSet.ToString())
        </td>
       
        <td>
            @Html.Label(item.test ?? "")
        </td>
       
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
     
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
    </tr>
}

</table>
